package com.bbs.service;

import com.bbs.domain.Article;
import com.bbs.domain.Report;
import com.bbs.entity.Result;

import java.util.List;

/**
 * @ClassName ReportService
 * @Description TODO
 * @Author cy
 * @Date 2019/9/21 18:14
 * @Version 1.0
 **/
public interface ReportService {

    /**
     * 查询所有的被举报帖子
     * @return
     */
    public List<Report> findAllReport();

    /**
     * 根据report表中的id查询article
     */
    public Article findOneArticle (Report report);

    /**
     * 屏蔽举报
     */
    public void shield (Report report);

    /**
     * 驳回举报
     */
    public void reject (Report report);

    /**
     * 修改举报状态
     * @param report
     */
    void updateReportStatus(Report report);

    /**
     * 对某些帖子举报
     * @param reportContent
     * @param articleId
     */
    Result add(String reportContent, Integer articleId, String reportUserName);
}
